﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WCS_Entity.User
{
    /// <summary>
    /// 已经登录用户
    /// </summary>
    [SugarTable("WCS_UserLogin", TableDescription = "用户登录表")]
    public class UserLoginEntity
    {
        /// <summary>
        /// id
        /// </summary>
        [Display(Name = "id")]
        [SugarColumn(ColumnDescription = "id", IsPrimaryKey = true, IsIdentity = true)]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 id { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name = "用户ID")]
        [SugarColumn(ColumnDescription = "用户ID")]
        public System.Int32 userId { get; set; }
        /// <summary>
        /// 令牌
        /// </summary>
        [Display(Name = "令牌")]
        [SugarColumn(ColumnDescription = "令牌")]
        public string tokenInfo { get; set; }
        /// <summary>
        /// 登录时间
        /// </summary>
        [Display(Name = "登录时间")]
        [SugarColumn(ColumnDescription = "登录时间")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.DateTime loginTime { get; set; }
    }
}
